﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DAL;
namespace BUS
{
    public class NhaXuatBan_BUS
    {
        NhaXuatBan_DAO ws;
        public NhaXuatBan_DTO[] LayDanhSachNhaXuatBan()
        {
            ws = new NhaXuatBan_DAO();
            NhaXuatBan_DTO[] nxb = ws.DanhSachNhaXuatBan();
            return nxb;
        }

        public NhaXuatBan_DTO DanhSachNhaXuatBan_TheoMaNXB(String str_MaNXB)
        {
            ws = new NhaXuatBan_DAO();
            NhaXuatBan_DTO nxb = ws.DanhSachNhaXuatBan_TheoMaNXB(str_MaNXB);
            return nxb;
        }

        public string MaTang()
        {
            ws = new NhaXuatBan_DAO();
            return ws.MaTang();
        }

        public int ThemNXB(NhaXuatBan_DTO nxb)
        {
            ws = new NhaXuatBan_DAO();
            return ws.ThemNXB(nxb);
        }

        public int XoaNXB(NhaXuatBan_DTO nxb)
        {
            ws = new NhaXuatBan_DAO();
            return ws.XoaNXB(nxb);
        }

        public int CapNhatNXB(NhaXuatBan_DTO nxb)
        {
            ws = new NhaXuatBan_DAO();
            return ws.CapNhatNXB(nxb);
        }
    }
}